﻿<Window x:Class="CPPEI.BD.VideoMatrixConfigTool.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <ToolBarPanel Orientation="Horizontal" Grid.Row="0">
            <Button x:Name="_ctlAdd" Content="添加" Margin="2" Click="_ctlAdd_Click" Width="50" Height="25"></Button>
            <Button x:Name="_ctlEdit" Content="修改" Margin="2" Click="_ctlEdit_Click" Width="50" Height="25"></Button>
            <Button x:Name="_ctlDelete" Content="移除" Margin="2" Click="_ctlDelete_Click" Width="50" Height="25"></Button>
        </ToolBarPanel>
        <DataGrid x:Name="_ctlDataGridSolution" Grid.Row="1" AutoGenerateColumns="False" IsReadOnly="True">
            <DataGrid.Columns>
                <DataGridTextColumn Header="方案名称" Binding="{Binding Name}" Width="auto"/>
                <DataGridTextColumn Header="方案说明" Binding="{Binding Caption}" Width="*"/>
                <DataGridTextColumn Header="视频源编号" Binding="{Binding VideoSourceId}" Width="auto"/>
                <DataGridTextColumn Header="视频矩阵编号" Binding="{Binding  VideoMatrixId}" Width="auto"/>
            </DataGrid.Columns>
        </DataGrid>
        <!--<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button x:Name="_ctlSave" Content="保存" Margin="2" Click="_ctlSave_Click" Width="50" Height="25"/>
            <Button x:Name="_ctlCanle" Content="取消" Margin="2" Click="_ctlCanle_Click" Width="50" Height="25"/>
        </StackPanel>-->
    </Grid>
</Window>
